package com.homework.T3;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/4/2 18:09
 * @description
 */
public class Worker {
    private String name;
    private int age;
    private int money;

    public Worker(String name, int age, int money) {
        this.name = name;
        this.age = age;
        this.money = money;
    }

    public Worker() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Worker{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", money=" + money +
                '}';
    }
}
